﻿@model Lehnet.Models.Nakliyeci
<html>
<head>
    <script type="text/javascript" src="/Scripts/jquery-1.4.4.js"></script>
    <script type="text/javascript" src="/Scripts/jquery.unobtrusive-ajax.js"></script>
    <script>
        function CloseAndUpdate() {
            parent.getallNakliyeciAjax();
            parent.jQuery.fancybox.close();
        }
        function OnSuccess(result, status, xhr) {
            CloseAndUpdate();
        }
    </script>

</head>
<body>

    <div style="width: 100%; text-align: right;">
        <a href="#" title="Kapat" onclick="CloseAndUpdate()">
            <input type="button" value="Kapat" /></a>
    </div>
    @using (Ajax.BeginForm("Create", new AjaxOptions { OnSuccess = "OnSuccess", HttpMethod = "Post" }))
    {
        @Html.HiddenFor(model => model.Id)
        @Html.ValidationSummary(true)
        <h2>@ViewBag.ResultMessage</h2>
        <fieldset>
            <legend>Nakliyeci Tanımlama</legend>
            <table width="100%">
                <tr>
                    <td>Ad</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.Ad)</td>
                </tr>
                <tr>
                    <td>EMail1</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.EMail1)</td>
                </tr>
                <tr>
                    <td>EMail2</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.EMail2)</td>
                </tr>
                <tr>
                    <td>Web</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.Web)</td>
                </tr>
                <tr>
                    <td>Adres</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.Adres)</td>
                </tr>
                <tr>
                    <td>VergiDairesi</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.VergiDairesi)</td>
                </tr>
                <tr>
                    <td>VergiNo</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.VergiNo)</td>
                </tr>
                <tr>
                    <td>BankaHesapSahibi</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.BankaHesapSahibi)</td>
                </tr>
                <tr>
                    <td>BankaAdi</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.BankaAdi)</td>
                </tr>
                <tr>
                    <td>SubeAdi</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.SubeAdi)</td>
                </tr>
                <tr>
                    <td>SubeKodu</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.SubeKodu)</td>
                </tr>
                <tr>
                    <td>HesapNo</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.HesapNo)</td>
                </tr>
                <tr>
                    <td>IBAN</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.IBAN)</td>
                </tr>
                <tr>
                    <td>Aciklama</td>
                    <td>:</td>
                    <td>@Html.EditorFor(model => model.Aciklama)</td>
                </tr>
                <tr>
                    <td colspan="6">
                        <input type="submit" value="Kaydet" /></td>

                </tr>
            </table>
        </fieldset>
    }
</body>
</html>
